package com.inno.life.controller.convert;

import com.inno.life.controller.dto.MessagesDTO;
import com.inno.life.domain.entity.MessagesBO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface MessagesDTOConverter {
    MessagesDTOConverter INSTANCE = Mappers.getMapper(MessagesDTOConverter.class);


    MessagesBO converDTOToBo(MessagesDTO messagesDTO);

    List<MessagesDTO> convertBOListToDTOList(List<MessagesBO> boList);

    MessagesDTO converBOToDTO(MessagesBO boResult);
}
